<?

class Controller
{
	protected function redirect($_params)
	{
		echo "<script>
				setTimeout(function(){
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
					{
						var referLink = document.createElement('a');
						referLink.href = '" . $_params . "';  
						document.body.appendChild(referLink);
						referLink.click();  
					}
					else
					{
						window.location.href = '" . $_params . "';  
					}
				},10);
			</script>";
		die();
	}
	
	protected function alert($_msg)
	{
		echo "<script>alert('".$_msg."');</script>";
	}
    
}

?>